﻿using System;
using System.Windows.Forms;

namespace PuppetMaster
{
    public partial class PMMainMenu : Form
    {
        private PuppetMaster _pm;
        
        public PMMainMenu(PuppetMaster pm)
        {
            _pm = pm;
            InitializeComponent();
        }

        private void buttonStartClients_Click(object sender, EventArgs e)
        {
            _pm.StartClients((int) numericUpDownClient.Value, checkBoxGUIClient.Checked, listBoxClients.Items);
        }

        private void buttonStartServer_Click(object sender, EventArgs e)
        {
            _pm.StartServer((int)numericUpDownServer.Value, checkBoxGUIServer.Checked, listBoxServers.Items);
        }
    }
}
